package com.hui.user_service.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.hui.user_service.entity.User;
import com.hui.user_service.mapper.UserMapper;
import com.hui.user_service.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements
        UserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public Integer saveUser(User user) {
        System.out.println("ok");
        return userMapper.insert(user);
    }
}
